package org.teamh.connection.handler;

import org.teamh.game.Start;
import org.teamh.gui.Event;

/**
 * This class is responsible for the receiving messages, which created a
 * temporary player.
 * 
 * @author richard
 * 
 */
public class CreateTestPlayerHandler extends MasterHandler{

	public CreateTestPlayerHandler(Start start) {
		super(start);
	}

	@Override
	public boolean handleMsg(String msg) {
		if(msg.startsWith("TEMPORARY USER")) {
			start.getGui().addEvent(new Event("temporaryUser", msg));
			return true;
		}
		
		return false;
	}
}
